import { AreaTreeGetResultModel } from '@/api/system/model/systemModel';
import { http } from '@/utils/http/axios';

enum Api {
  AreaList = '/authority/areas/trees',
  ProvinceList = '/authority/areas/0/children',
}

export const getAreaTree = () => http.request<AreaTreeGetResultModel[]>({ url: Api.AreaList });
export const getProvinceList = () =>
  http.request<AreaTreeGetResultModel>({ url: Api.ProvinceList });
